package com.baseweb.webadmin.core.constants;

import com.baseweb.webadmin.core.util.ObjectFormatter;

import java.math.BigDecimal;

public class Constants {
	public static final boolean IS_DEBUG = false;
    public static final String ERROR_KEY = "result";
    public static final String ADD_RESOURCE = "新增资源";
    public static final String UPDATE_RESOURCE = "修改资源";
    public static final String DELETE_RESOURCE = "删除资源";
    
	//系统文件编码
	public final static String SYSTEM_CHARSET=System.getProperty("file.encoding");
	//项目根路径,由InitServlet初始化该系统变量
	public final static String SYSTEM_WEBROOT=System.getProperty("webapp.root");
	//换行符
	public final static String LINE_SEPARATOR=System.getProperty("line.separator");
	
	public final static int FILE_TEMP_SIZE=1024;

	public final static BigDecimal BY_COIN_RATIO = ObjectFormatter.str2BigDecimal("0.01"); //元

	public final static BigDecimal PRODUCT_DEPOSIT_RATIO = ObjectFormatter.str2BigDecimal("0.5");  //0.3

	//商家佣金比例  1-0.9
	public final static BigDecimal BIZ_USER_COMMISSION_RATIO = ObjectFormatter.str2BigDecimal("0.1");

//	public final static BigDecimal BD_ZERO = ObjectFormatter.str2BigDecimal("0");

	public final static Integer COINS_INVITE_GIFT = 50;

	public final static Integer COINS_REGISTER_GIFT = 50;

	public final static Integer COINS_VERIFY_GIFT = 50;
}
